package org.lq.ssm.vo.mapper;

import org.lq.ssm.dto.MenuDTO;
import org.lq.ssm.po.MenuPO;
import org.lq.ssm.vo.MenuVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;


@Mapper(componentModel = "spring")
public interface MenuVOMapper {
    //@Mapping(target = "children" ,ignore = true)
    // 若类的属性相等可直接转化，即dto可直接转为vo，不用自己在写
    MenuVO menuDTOToMenuVO(MenuDTO menuDTOO);



    List<MenuVO> menuDTOSToMenuVOS(List<MenuDTO> menuDTOS);
}
